#ifndef TFORMMENUITEM_H
#define TFORMMENUITEM_H

#include <QtGui/QWidget>

namespace Ui {
    class TFormMenuItem;
}

class TFormMenuItem : public QWidget {
    Q_OBJECT
    Q_DISABLE_COPY(TFormMenuItem)
public:
    explicit TFormMenuItem(QWidget *parent = 0);
    virtual ~TFormMenuItem();
    void setText(const QString&);
    QString getText();
protected:
    virtual void changeEvent(QEvent *e);
private:
    Ui::TFormMenuItem *m_ui;
signals:
    void pressed();
    void help_click();
    void edit_click();
    void remove_click();
private slots:
    void on_actionHelp_triggered();
    void on_actionEdit_triggered();
    void on_actionDelete_triggered();
    void on_pbPush_pressed();
};

#endif // TFORMMENUITEM_H
